from django.db import models

# Create your models here.
class UserInfo(models.Model):
    user_tye_choice=(
        (1,"普通用户"),
        (2,"会员")
    )
    user_type=models.IntegerField(choices=user_tye_choice)
    user_name=models.CharField(max_length=32,unique=True)
    password=models.CharField(max_length=64)

class UserToken(models.Model):
    user=models.OneToOneField(to=UserInfo,on_delete=models.CASCADE)
    token=models.CharField(max_length=64)
